class Shoppinglist:
    def __init__(self, shopping_list):
        self.shopping_list = shopping_list

    def get_item_count(self):
        return len(self.shopping_list)

    def get_total_price(self):
        total = 0
        for price in self.shopping_list.values():
            total += price
        return total

list = {'book':66,'pen':30, 'paper':10}
Shopping_list = Shoppinglist(list)
print(Shopping_list.get_item_count())
print(Shopping_list.get_total_price())9o